/*
package com.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;

public class GPSUtils {

        public static String place(String place) throws UnsupportedEncodingException, IOException {//
//            String latitude="23.138128";
//            String longitude="113.01695";
            String AK = "AYIwB7KBimTPuNBmcZFyP2FytNfMGW3w";
            String url = "http://api.map.baidu.com/reverse_geocoding/v3/?ak="+AK+"&output=json&coordtype=wgs84ll&location=";
            url = url+place+"&output=json";
            StringBuilder json = new StringBuilder();
            System.out.println(url);
            URL getUrl = null;
            try {
                getUrl = new URL(url);
            } catch (MalformedURLException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            URLConnection link = null;
            try {
                link = getUrl.openConnection();
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            InputStreamReader io = new InputStreamReader(link.getInputStream(),"UTF-8");
            BufferedReader bufferedReader = new BufferedReader(io);
            String in = null;
            while ((in=bufferedReader.readLine())!= null) {
                json.append(in);
            }
            System.out.println(json);
            //广东省佛山市南海区鸿基路
            return json.toString();
    }
}
*/
